package com.xiaofangjie.excel;

public class StringTest {
	
	public static void main(String[] args) {
		String str = "ALDH1A1Other Aliases: RP11-151D14.2, ALDC, ALDH-E1, ALDH1, ALDH11, PUMB1, RALDH1Other Designations: ALDH class 1; ALHDII; RALDH 1; acetaldehyde dehydrogenase 1; aldehyde dehydrogenase 1, soluble; aldehyde dehydrogenase, liver cytosolic; retinal dehydrogenase 1; retinaldehyde dehydrogenase 1Location: 9q21.13 Annotation: Chromosome 9, NC_000009.11 (75515578..75568233, complement)MIM: 100640ID: 216  Order cDNA clone 2.Aldh1a1 – aldehyde dehydrogenase family 1, subfamily A1 [Mus musculus] aldehyde dehydrogenase family 1, subfamily A1Official Symbol:";
		String os = str.substring(0, str.indexOf("Other Aliases"));
		String oA = str.substring(str.indexOf("Other Aliases:")+"Other Aliases:".length(), str.indexOf("Other Designations:"));
		String oD = str.substring(str.indexOf("Other Designations:")+"Other Designations:".length(),str.indexOf("Location"));
		String location = str.substring(str.indexOf("Location: ")+"Location: ".length(), str.indexOf("Annotation"));
		String mim = str.substring(str.indexOf("MIM: ")+"MIM: ".length(), str.indexOf("ID:"));
		
		System.out.println("\t"+os);
		System.out.println(oA.trim());
		System.out.println(oD.trim());
		System.out.println(location.trim());
		System.out.println(mim.trim());
		//Official Symbol:ALDH1A1
		//Other Aliases: RP11-151D14.2, ALDC, ALDH-E1, ALDH1, ALDH11, PUMB1, RALDH1
		//Other Designations: ALDH class 1; ALHDII; RALDH 1; acetaldehyde dehydrogenase 1; aldehyde dehydrogenase 1, soluble; aldehyde dehydrogenase, liver cytosolic; retinal dehydrogenase 1; retinaldehyde dehydrogenase 1
		//Location: 9q21.13 
		//Annotation: Chromosome 9, NC_000009.11 (75515578..75568233, complement)
		//MIM: 100640
		//ID: 216  
		//Order cDNA clone 2.Aldh1a1 – aldehyde dehydrogenase family 1, subfamily A1 [Mus musculus] aldehyde dehydrogenase family 1, subfamily A1Official Symbol:
	}

}
